#ifndef RSA_H_
#define RSA_H_

#include "reprst.h"

void generate_keys(big_integer *n, big_integer *e, big_integer *d);
int rsaes_pkcs1_v15_encrypt(octet_string *C, const big_integer *n, const big_integer *e, const uint8_t *M, size_t mlen);
int rsaes_pkcs1_v15_decrypt(uint8_t **M, size_t *mlen, const big_integer *n, const big_integer *d, const octet_string *C);

#endif
